#include"Matrix.h"
int main()
{ 
	cout << "test 1"<<endl;
	int a[9] = {1,2,3,4,5,6,7,8,9};
	Matrix<int> m(3,3,a);
	m.show(); // test 1
	
	cout << "test 2"<<endl;
	int b[12] = {1,1,1,1,1,1,1,1,1,1,1,1};
	Matrix<int> n(3,4,b);
	if(m.is_square()==1) cout << "m is square" << endl;
	else cout<<"m isn't square" << endl; 
	if(n.is_square()==1) cout << "n is square" << endl;
	else cout<<"n isn't square" << endl;  // test 2
	
	cout << "test 3"<<endl;
	RowVector<int> row(9,a);
	row.show();
	ColVector<int> col(9,a);
	col.show(); // test 3
	
	cout << "test 4"<<endl;
	m.show();
	n.show();
	Matrix<int>  l=m*n;
	l.show(); // test 4
	
	cout << "test 5"<<endl;
	int sum = row * col;
	cout << sum << endl; // test 5
	
	cout << "test 6"<<endl;
	int c[9] = {1,1,1,1,1,1,1,1,1};
	RowVector<int> erow(9,c);
	ColVector<int> ecol(9,c);
	int sum1 = row * erow;
	int sum2 = col * ecol;
	cout << sum1 << endl;
	cout << sum2 << endl; // test 6
	
	cout << "test 7"<<endl;
	Matrix<int> p = col * row;
	p.show();  // test 7
	
	
	
	
	
	return 0; 
}

